package com.lms.desiginmode.builder.infobuilder;

import com.lms.desiginmode.builder.Heap;
import com.lms.desiginmode.builder.Info;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-12 16:50
 * @Description:
 */
public class HeapInfoBuilder extends InfoBuilder {
    private Info info=new Info();

    @Override
    void price() {
        System.out.println("内存条的价格 23423");
    }

    @Override
    public Info create() {
        Heap heap = new Heap.HeapBuilder().name("heap").usage(222.0).build();
        info.setEndpoint(heap);
        return info;
    }
}
